package com.dgut.hisystem.mapper;

import com.dgut.hisystem.entity.Relationship;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RelationshipMapper {
    @Select({"SELECT js_id, br_card, js_idcard, js_name, js_job, js_phone FROM relationship_info WHERE js_id=#{id}"})
    Relationship getRelationshipById(int id);

    void insert(Relationship relationship);

    void update(Relationship relationship);

    void delete(int id);
}
